package com.dankegongyu.customer.common.base.paging.test

import com.dankegongyu.lib.common.paging.BasePagingModel
import com.dankegongyu.lib.paging.RoomListItemBean

class TestPagingM : BasePagingModel<RoomListItemBean>() {

//    private var mRoomsObserver: DKObserverV3<RoomListBeanV3>? = null

    override fun getFirstPage(): Int {
        return 1
    }

    override fun loadPagingData() {
//        mRoomsObserver?.dispose()
//        mRoomsObserver = object : DKObserverV3<RoomListBeanV3>() {
//            override fun onSuccess(data: RoomListBeanV3) {
//                loadSuccess(data.totalElements, data.content, data.hasNext)
//            }
//
//            override fun onFailure(httpError: HttpError) {
//                loadFailure(httpError.description)
//            }
//        }
//
//        val map: MutableMap<String, Any?> = HashMap()
//        map["pageNumber"] = currentPage
//        map["cityId"] = SPCity.getCachedCityId()
//        map["subway"] = "6号线.十里堡"
//        map["price"] = "2000-3000"
//        RoomRepository.getRooms(map, mRoomsObserver)
    }

}